064 fbd basics startup programming with fbd

你好,在这个视频中,我们将学习功能框图编程语言,我将创建一个新的主要组织博客,我将选择语言FBT,好的,创建新的组织博客并更改编程接口,然后我们稍后使用图表。
Hello, in this video, we will learn if the function block diagram programming language, I will create a new main organization blog and I will select as language FBT, OK, and new organization blog is created and the programming interfaces changed before we use later diagram.

我们使用了一种简单的顺序控制语言,现在我们将在这里使用 FBT。
And we used a simple sequential control language and now we will use FBT in here.

您将看到和/或功能块和输入以及分配等。
You will see and or function blocks and inputs and also assignments and etc..

这些是我们可以使用的盒子。
These are the boxes that we can use.

让我们从这里开始。
And let's start in here.

你可以看到我们可以输入任何字母或任何类似呃,if或case或for循环或重复循环和exacta或者在小图中我们可以把呃,我们可以把上下文放在这里,但在这里我们不能。
You can see we can type any letter or any like uh, if or case or for loop or repeat loop and exacta or in little diagram we can put uh, we can put the context to here, but in here we cannot.

所以,我们能做些什么。
So what can we do.

比如说,我们从结尾开始,好吧。
For example, let's start with the end, OK.

嗯,在 FPGA 中,这是终端盒,在这里和这里我们将定义我们的变量。
And uh, in the FPGA, this is the end box and in here and in here we will define our variables.

我们去 p.l.c.
Let's go to p.l.c.

税或我们可以在这里或其他区域定义,例如,我们可以说如果机器是自动或模式,好的,这将是M零点零。
tax or we can define in here or another area, for example, we can say if machine is automatically or mode, OK, and this will be M zero point zero.

如果我的机器启动了,好吧,我们能说什么?
And if my machine is started, OK, and what can we say?

例如,我们可以对这里说,如果机器也正常并且启动正常,我将在这里定义我的输出。
For example, we can say to here to time and excited about in here I will define my output if machine is also and if started ok.

那我们能做什么呢,我们可以在这里添加,Taimur在这里,我左键点击到这里。
Then what can we do, we can add here, Taimur in here, I left click to here.

好的,重点关注这里和这里。
OK, focus to here and here.

用左键单击并按左键,单击鼠标在这里 I 到这里。
With the left click and press the left, click on the mouse in here I to here.

好的,现在我将在 Taimur 吃饭,例如机器的启动时间。
OK, now in here I will eat here at Taimur and for example, start time of machine.

现在时间是数据块,是五秒,好的,治愈,这是我们的输出 Taimur 输出。
And now this is that time is data block and the is five second, OK, and the cure, this is our output Taimur output.

现在,我将添加或 Belloc 来听取时间是否正常,如果有,呃,例如,或者我们可以说,如果有人按下,例如,运行 Matau 和执行器,我们可以定义来听到,例如,运行 Motter 这将是布尔。
And now I will add or Belloc to hear if time is OK and if there is, uh, for example, or we can say if somebody pressed to for example, run Matau and executer we can define to hear for example, run Motter this will be Boulle.

好的,让我们定义攻击,这将不是本地全局内存并定义它,我们将开始运行。
OK, let's define attack and this will be not a local global memory and define it and we will start to run.

Motl 在这里我们会说。
Motl And in here we will say.

Q 零点为零。
Q zero point zero.

好的,这是我们的输出,现在我们可以启动模拟器,首先,我们可以测试一次。
OK, this is our output and now we can start our simulator, first of all, and we can test once.

它是否正常工作?
Is it working correctly or not?

不,嗯,我们正在搜索我们的模拟器,这将是。
No, um, we are searching our simulator, and this will be.

一秒钟就找到了。
Found in a second.

而且,我们可以在函数中定义第二种语言,例如,在这个函数中,我们可以在FPGA区域中使用Excel编程语言,这可能不是,我们可以在一个程序中测试这两种编程语言。
And also, we can define the second language in the function, for example, and in the in this function, we can use Excel programming language in the FPGA area in this may not be and we can test once these two programming language in one program.

现在,我们的程序正在几秒钟内编译和编译配置。
Now, our program is compiling and compiling the configuration in seconds.

同样,我们将进行下载并测试一次。
Again, we will do a download and we will test once.

程序是否正常运行?
Is program working correctly or not?

现在我说了很多,还没有说完,但我需要说上网,我会说运行CPU。
Now I said lot and not finished, but I need to say go online and I will say run C.P.U.

好的,现在我准备好了。
OK, now I am ready.

好的,如果机器处于自动模式,好的,但是计时器不会广泛启动,因为这是这样的,所以这应该是真的,并且这个输入也应该是真的。
OK, if machine is automatic mode, OK, but the timer is not started wide because this is and so this should be true and this input also should be true.

所以我会说实话。
So I will say true.

这次正在运行三、四、五。
And this time is running now three and four and five.

好的,所以五秒后我们有一个输出,这是或者如果这是例如,想象一下如果这个输入或这个输入我们有一个输出。
OK, so after five seconds we have an output and this is or if this this is for example, imagine if this input or this input that we have an output.

所以我要说的是,对于时间的这个输入,如果我改变运行电机来激活它,它也是输出。
So I will say to this input to of time, it is also output is of if I change run motor to activate it.

好的,我们有一个输出。
OK, so we have an output.

好的,零点零现在处于活动状态。
OK, so zero point zero is active now.

所以也许在这里我们可以说让我们来做这个。
So maybe in here we can say to here let's make this.

我会在这里再添加一个。
I will add one more to here.

好吧,现在我要在这里说,伙计,你没事吧。
OK, now I will say to here, man, you're OK.

如果机器是手动模式,这将是全局内存并且OK,所以。
If the machine is manual mode, this will be global memory and OK, so.

在这里,我将做一个下载这个项目和主。
In here, I will do a download this project and Lord.

我准备好了。
OK, I'm ready.

例如,机械师现在不会像我所说的那样自动激活手动模式并按下运行电机,然后我们就会得到输出。
So Machinists', for example, now, not automatically what I will say, make a manual mode active and press run motor and then we have an output.

好的,所以这可能是错误的并且输出消失了。
OK, so this can be false and the output is gone.

这是手动控制,然后是一个新博客。
So this is the manual controls and then it's a new blog.

例如,在这里我们会说,例如,函数,这将是一种编程语言。
And for example, in here we will say, for example, function and this will be a programming language.

好的,现在函数已创建。
OK, and now the function is created.

例如,在这个函数中,如果我们可以说。
And in this function, for example, if we can say.

年长过。
Older than.

如果不是,例如,电机向前推进,我们可以将我们的球场放在这里。
We can put here our court if other than, for example, um, motor to forward.

可以是真的。
Can be true.

好的,我将定义这只股票也是全球记忆中的全球记忆。
OK, and I will define this stock is also global memory in global memory.

这将是比尔。
This will be Bill.

好的,并且。
OK, and.

定义它,如果所有的人都太活跃,或者我会来到这里进行网络交流,那么这将是真的,我会说,嗯,并且。
Define it, and this will be true if all too active saw in the main or be I will come to here in the here to network to I will say, um, and.

到这里,我需要。
To here, I need to.

两倍的利率是一,这个。
Two times the rate is one, this one.

因此,如果莫特有两个前锋,并且也在禁区之一FC,我可以说,例如,在这里我们可以说马达。
So if Motter two forward and also in the block one FC, I can say, for example, to here we can say motor.

三个转发看看是否正常?
Three forward to see is it working correctly or not?

好的,是的,这也将是全局内存,并将定义它。
OK, true, and this will be also global memory and will be will define it.

电机三正转,那么,比如说,在这里,我会说Q零点一应该是活跃的,好的,我会再做一个下行月。
Motor three forward, then, for example, in here, I will say Q zero point one should be active, OK, and I will do a down month again.

这个项目正在编译,我会说很多。
This project is compiling and I will say a lot.

现在我们准备好了。
And now we are ready.

让我们来看看汽车。
And let's go to auto.

让我们把它变成一个八度。
Let's make it an octave.

好的,所以在这里我们忘记了需要将这个函数放在这里。
OK, so in here we forgot to wanting this function we need to put here.

好的,现在已启用此功能以启​​用我们需要创建的输入,并且如果此功能未在 main 或 B 中定义,那么我们可以说听到 auto OK 并进行下载,因此存在问题,然后将其关闭。
OK, now this is enabled to enable input that we need to create and also we can say to hear auto OK and do a download if this function is not defined in the main or B so there is a problem, then make this off.

首先,这是错误的,结果是正确的,因为我们在功能块中忘记了制作。
First of all, this is false and the result is true because of why in the function block we forgot to make.

现在,这是一个设定条件,我们可以在这里说 ls then。
Now, this is a set condition we can say to here ls then.

也许将其复制到此处,这可能是假的,这将是假的,我不想要。
Maybe copy this to to here, and this can be false and this will be false, and I don't want.

现在,在主大厅,我们去那里激活自动功能。
Now, in the main lobby, let's go there and activate auto.

然后监控。
Then monitoring.

让这一点成为现实,所以这是真的,你可以看到一两个月的前进和护城河或三个月的前进是真的,这是真的。
Make this true, so this is true that you can see a month or two forward and moat or three forward is true and this is true.

如果我们在五秒后也激活这个,这个输出就会通过。
And if we activate this one also after five seconds, this output will be through.

在这里,您可以看到,根据我们的官方编程语言,这些正在运行,并且在该程序中可以在 FBI 中运行。
And in here, you can see, according to our official programming language, these are working and in this program can work in the FBI.

好的,我们可以使用一种编程语言了。
OK, so we can use to programming language in one.

可能不是,或者我们可以在小图中使用三种不同的编程语言,您可以创建一个函数,我们可以创建一个功能块也是一个执行器,我们可以在一个编程区域中使用它们。
One may not be or we can use three different programming language in little diagram, you can create a function and we can create a function block also an executor, and we can use them all in one programming area.

好的,这工作正常,而且正在工作。
OK, and this is working correctly and this is working.

这是功能框图的结构,也是功能框或空框的结构。
And this is the structure of the function block diagramming and also in the function box or empty box.

我们也可以像这样在此处添加输入。
Also we can add input to here like this.

好的,定义了一个新的输入,让我们再听一个输入。
OK, so a new input is defined and let's make one more input to hear.

很高兴听到。
It's good to hear.

好的,所以另外两个输入被添加到此和博客中。
OK, so two more input is added to this and blog.

好吧,我就推迟这个这个这个了。
OK, I will delay this one and this one.

所以这是一个功能外观图,也许在下一个视频中我们会提前进行,或者我们可以做一些示例,但我们会做一个关于功能的示例。
So this is a functional look diagramming maybe in the next videos we will go in advance or we can do and examples, but we will do an example about the functional take.

我的意思是,我已经完成了这个视频。
I mean, I'm finished for this video.

下一个视频见。
See you in the next video.